/*
 * Sie_invdisView.java
 */

package sie_invdis;

import java.sql.*;

import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import java.text.*;
import java.net.URL;
import java.net.HttpURLConnection;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.InputStream;

import java.awt.event.*;
import java.util.Calendar;

import javax.swing.*;
import org.jfree.ui.RefineryUtilities;
import org.jfree.data.category.DefaultCategoryDataset;
import javax.swing.JTable.*;
import java.util.Date;


import org.jdom.*;
import org.jdom.output.*;
import org.jdom.input.*;
import java.io.*;
import java.util.*;
/**
 * The application's main frame.
 */
public class Sie_invdisView extends FrameView {

    private javax.swing.table.DefaultTableModel jtable_modelo_come;
    private javax.swing.table.DefaultTableModel jtable_modelo_tieres;
    int autorizado=0;
   
    private java.util.Date fechahoy=new Date();

    bd_conexion x = new bd_conexion() ;
    ResultSet rs=null;
    private SimpleDateFormat formateador = new SimpleDateFormat("yyyy-MM-dd");
    private SimpleDateFormat formateadoresta = new SimpleDateFormat("yyyy-MM-dd");


    @Override
    public void setFrame(JFrame frame) {
             super.setFrame(frame);
    }

       
    public Sie_invdisView(SingleFrameApplication app) {
        super(app);

        this.iniciar_modelo_tablacomentario();
        this.iniciar_modelo_tiendaresponsable();
        initComponents();

        getFrame().setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);

        WindowAdapter wa = new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
               if(JOptionPane.showConfirmDialog(null, "Realmente Desea Salir?")==0){
               x.cierraConexionv2(variables_global.getconexiongral());   // TODO add your handling code here:
               System.exit(0);// para cerrar la aplicacion
                }
            }
            };
            getFrame().addWindowListener(wa);

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
               // statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                //statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        //statusAnimationLabel.setIcon(idleIcon);
        //progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        //statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    //progressBar.setVisible(true);
                    //progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    //statusAnimationLabel.setIcon(idleIcon);
                    //progressBar.setVisible(false);
                    //progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String)(evt.getNewValue());
                    //statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer)(evt.getNewValue());
                    //progressBar.setVisible(true);
                    //progressBar.setIndeterminate(false);
                    //progressBar.setValue(value);
                }
            }
        });
                this.jbtn_cortesdiagraf.setVisible(false);
                this.jbtn_ventasagente.setVisible(false);
                this.jbtn_monedero.setVisible(false);
                this.jbtn_costosinventarios.setVisible(false);
                this.jbtn_repvpprovee.setVisible(false);
                //this.jbtn_ventasxfamilia.setVisible(false);
                //this.jbtn_costosxsubfam.setVisible(false);
                this.jbtn_artmasvendidos.setVisible(false);
                this.jbtn_comprasvsventas.setVisible(false);
                this.jbtn_viajes.setVisible(false);
                this.jbtn_cxc.setVisible(false);
                this.jbtn_almacenarticulos.setVisible(false);
                //oculto en nivel gerente

                this.jbtn_cat_artic.setVisible(false);
                this.jbtn_recepciones.setVisible(false);
                this.jbtn_insumos.setVisible(false);
                this.jbtn_cxc.setVisible(false);
                this.jbtn_apartados.setVisible(false);
                this.jbtn_ventasvstipo.setVisible(false);
                this.jbtn_cattareas.setVisible(false);
                this.jbtn_recursosh.setVisible(false);
                this.jbtn_encuestascalidad.setVisible(false);
                this.jbtn_distribucioncompras.setVisible(false);
                this.jbtn_proveedores.setVisible(false);
                this.jbtn_ventasxmes.setVisible(false);
                this.jbtn_diarioventa.setVisible(false);
                this.jbtn_laser.setVisible(false);
                this.jtbtn_conexion.setVisible(false);
                this.jbtn_facturasimprime.setVisible(false);
                this.jbtn_cajaflujo.setVisible(false);
                this.jButton3.setVisible(false);
                this.jbtn_recursosh.setVisible(false);

        this.showautenticar();
        if (variables_global.getnivelusu() < 3)
             {
                this.jbtn_cat_artic.setVisible(true);
                this.jbtn_recepciones.setVisible(true);
                this.jbtn_ventasagente.setVisible(true);
                this.jbtn_cortesdiagraf.setVisible(true);
                this.jbtn_monedero.setVisible(true);
                this.jbtn_apartados.setVisible(true);
                this.jbtn_cattareas.setVisible(true);
                this.jbtn_insumos.setVisible(true);

                this.jbtn_recursosh.setVisible(true);
                this.jbtn_ventasvstipo.setVisible(true);
                this.jbtn_cxc.setVisible(true);
                this.jbtn_almacenarticulos.setVisible(true);
                this.jbtn_comprasvsventas.setVisible(true);
                this.jbtn_viajes.setVisible(true);
                this.jbtn_repvpprovee.setVisible(true);
                //this.jbtn_ventasxfamilia.setVisible(true);
                this.jbtn_artmasvendidos.setVisible(true);
                //this.jbtn_costosxsubfam.setVisible(true);
                this.jbtn_costosinventarios.setVisible(true);
                this.jbtn_encuestascalidad.setVisible(true);
                this.jbtn_distribucioncompras.setVisible(true);
                this.jbtn_proveedores.setVisible(true);
                this.jbtn_ventasxmes.setVisible(true);
                this.jbtn_diarioventa.setVisible(true);
                //this.jbtn_laser.setVisible(true);
                this.jtbtn_conexion.setVisible(true);
                this.jbtn_facturasimprime.setVisible(true);
                this.jbtn_cajaflujo.setVisible(true);
            }
         if ((variables_global.getnivelusu() > 2) && (variables_global.getnivelusu() < 6))
             {
                this.jbtn_cat_artic.setVisible(true);
                this.jbtn_recepciones.setVisible(true);
                this.jbtn_insumos.setVisible(true);
                this.jbtn_apartados.setVisible(true);
                this.jbtn_ventasvstipo.setVisible(true);
                this.jbtn_cattareas.setVisible(true);
                this.jbtn_recursosh.setVisible(true);
                this.jbtn_monedero.setVisible(true);
                //this.jbtn_laser.setVisible(true);
               //this.jbtn_almacenarticulos.setVisible(true);
                this.jtbtn_conexion.setVisible(true);
                this.jbtn_cajaflujo.setVisible(true);
            }
        if ((variables_global.getnivelusu() > 4) && (variables_global.getnivelusu() < 6))
             {

                this.jbtn_laser.setVisible(true);

            }
           if((!variables_global.getLogin().equals("jesus")) && (!variables_global.getLogin().equals("adiel")) && (!variables_global.getLogin().equals("nelson")) && (variables_global.getnivelusu()!=8) && (!variables_global.getLogin().equals("isaac")))
                {
                    this.jbtn_recursosh.setVisible(true);
                }
           else
               {
                    this.jbtn_recursosh.setVisible(false);
                }
        if(variables_global.getLogin().equals("adiel"))
                {
                    this.jPanel4.setVisible(false);
                    this.jPanel2.setVisible(false);
                }
         if(variables_global.getLogin().equals("juan"))
                {
                    this.jbtn_distribucioncompras.setVisible(true);
                    this.jbtn_diarioventa.setVisible(true);

                }
    if(variables_global.getLogin().equals("hcruz"))
                {
                    this.jbtn_distribucioncompras.setVisible(true);
                    this.jbtn_diarioventa.setVisible(true);

                }
if((variables_global.getLogin().equals("administrador"))  || (variables_global.getLogin().equals("cpclaudia"))   || (variables_global.getLogin().equals("admon1"))   || (variables_global.getLogin().equals("luis")) || (variables_global.getLogin().equals("luisrios")) || (variables_global.getLogin().equals("monica")) || (variables_global.getLogin().equals("admon2")) || (variables_global.getnivelusu()==6))
                {
                    this.jbtn_cortesdiagraf.setVisible(true);
                }
           else
               {
                    this.jbtn_cortesdiagraf.setVisible(false);
                }
if(variables_global.getnivelusu()==7)
                {
                   this.jbtn_recursosh.setVisible(true);
                }
        if(variables_global.getnivelusu()==8)
                {
                   this.jbtn_cat_artic.setVisible(true);
                   this.jbtn_recepciones.setVisible(true);
                }
        //una vez qu ya se quien es empiezo mi relajo
        //x.estableceConexion();
         if ((variables_global.getnivelusu()<6)&& (variables_global.getveravisos()== 1))
             {
                    this.carga_catalogocomentarios();
                    this. cambiartamanofilas();
                    this.carga_catalogoresponsables();
                    JFrame mainFrame = Sie_invdisApp.getApplication().getMainFrame();
                    supervision_reporte_eventualidades fsre=new supervision_reporte_eventualidades(mainFrame,true);
                    fsre.pack();
                    fsre.setVisible(true);

            }
        if (variables_global.getLogin().equals("recepcion"))
             {
                this.jbtn_diarioventa.setVisible(true);
             }
        if (variables_global.getnivelusu()==6)
             {
             this.jbtn_recursosh.setVisible(false);
            }
         jt_comentarios.getColumnModel().getColumn(0).setPreferredWidth(35);//Folio
         jt_comentarios.getColumnModel().getColumn(1).setPreferredWidth(250);//doc ant.
         jt_comentarios.getColumnModel().getColumn(2).setPreferredWidth(25);//fecha

         jt_tiendaresponsable.getColumnModel().getColumn(0).setPreferredWidth(15);//Folio
         jt_tiendaresponsable.getColumnModel().getColumn(1).setPreferredWidth(50);//doc ant.
         //this.jep_logo.setText("<img src=\"http://"+variables_global.getHost()+"/javaweb/imagenespuntoventa/repre.jpg\" width=\"350\" height=\"200\" border=\"0\" alt=\"Foto Articulo\"></img>");
         this.jep_logo.setText("<img src=\"http://"+variables_global.getHost()+"/javaweb/imagenespuntoventa/giflogo.gif\" width=\"350\" height=\"200\" border=\"0\" alt=\"Foto Articulo\"></img>");
        //this.datos_checarauto();
        if(autorizado==1)
            {
                this.jbtn_checador.setVisible(false);
            }
        else
            {
                this.jbtn_checador.setVisible(false);
            }
        if(variables_global.getnivelusu()==3)
          getFrame().setTitle("Tienda: "+variables_global.getidtiendamidescribe()+" Usuario:"+variables_global.getNombre()+" Nivel Usuario:Gerente");
        if(variables_global.getnivelusu()<3)
          getFrame().setTitle("Tienda: "+variables_global.getidtiendamidescribe()+" Usuario:"+variables_global.getNombre()+" Nivel Usuario:Supervisor"+" @"+variables_global.getHost());
        if(variables_global.getnivelusu()>3)
          getFrame().setTitle("Tienda: "+variables_global.getidtiendamidescribe()+" Usuario:"+variables_global.getNombre()+" Nivel Usuario:Invitado");
    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = Sie_invdisApp.getApplication().getMainFrame();
            aboutBox = new Sie_invdisAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        Sie_invdisApp.getApplication().show(aboutBox);
    }

     public void showdistrifolios() {
        if (distrifolios == null)
            {
               // JFrame mainFrame = Sie_invdisApp.getApplication().getMainFrame();
                distrifolios = new com_distri_folios();
                //distrifolios.setLocationRelativeTo(mainFrame);
            }
            //Sie_invdisApp.getApplication().show(distrifolios);
    }
     public void showautenticar() {
        if (autenticar == null)
            {
                JFrame mainFrame = Sie_invdisApp.getApplication().getMainFrame();
                autenticar = new autenticar(mainFrame,true);
                autenticar.setLocationRelativeTo(mainFrame);
            }
            Sie_invdisApp.getApplication().show(autenticar);
    }

  public void showavisosrecepciones() {
        if (avisosrecepciones == null)
            {
                
               // avisosrecepciones = new com_distri_folios_avisos();
                //avisosrecepciones.pack();
                //avisosrecepciones.setVisible(true);
                //avisosrecepciones.setLocationRelativeTo();
            }
            //Sie_invdisApp.getApplication().show(avisosrecepciones);
    }

private void iniciar_modelo_tablacomentario()
    {
        jtable_modelo_come=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_come.addColumn("<html><b>Fecha</b></html>");
        jtable_modelo_come.addColumn("<html><b>Articulos solicitados</b></html>");
        jtable_modelo_come.addColumn("<html><b>Observacion</b></html>");

        //se crea intancia de la clase conexion
    }
private void iniciar_modelo_tiendaresponsable()
    {
        jtable_modelo_tieres=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_tieres.addColumn("<html><b>Tenda</b></html>");
        jtable_modelo_tieres.addColumn("<html><b>Responsable</b></html>");
    }


    private void datos_checarauto()
        {
               try
                    {
                        File archivo = new File(variables_global.getunidadlocal()+":/windows/sichecadodatos.xml");
                        if (archivo.exists())
                            {
                                autorizado=1;
                               
                            }
                    }
                    catch (Exception ex)
                        {
                            ex.printStackTrace();
                        }
        }


private void carga_catalogocomentarios()
    {
       String fechallegatienda="";
       this.LimpiarJTable();
       //invoco al metodo que trae el recordset de datos

        try
         {
               rs = x.sieuno_executediversosv2("select * from x1distribucion_bitacoracatalogo() as (folio integer,fe timestamp without time zone,escrip text,usu character varying(20),obser text);",variables_global.getconexiongral());
            while (rs.next())
                {
                    fechallegatienda=rs.getString("fe");
                     jtable_modelo_come.addRow(new Object[]{"<html>"+this.fechaeuropea(fechallegatienda.substring(0, 10))+"<br> "+this.DiaSemana(fechallegatienda.substring(0, 10))+" "+fechallegatienda.substring(11, 16)+"</html>","<html><p align=justify>"+rs.getString ("escrip")+"</p></html>",rs.getString ("obser")});
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
      }


 private void carga_catalogoresponsables()
    {
     JTable jtable_tiendas=variables_global.gettabla_tiendas();
     this.LimpiarJTresponsable();
     int numerotiendas=jtable_tiendas.getRowCount(),ii=0,idtienda=0,ndias=0,colo=0;
     String tienda="";
     String fechaformaamericana=this.fechaamericana(fechahoy);
     Object[] fnewRow = new Object[2];
     for(ii=0;ii<numerotiendas;ii++)
        {
            tienda=jtable_tiendas.getValueAt(ii,1).toString()+"";
            //invoco al metodo que trae el recordset de datos

            fnewRow[0]=jtable_tiendas.getValueAt(ii,0).toString();
            fnewRow[1]="<html><h4><b><font color=\"red\">No Registrado</font></b></h4></html>";
            try
                {
                rs = x.sieuno_executediversosv2("select * from x1venta_tiendasmichelle_responsable(0,"+tienda+",'"+fechaformaamericana+"') as (id integer,idtienda integer,idempleado integer,fechainicio date,fechafin date,nombre text,nombretienda text,localidad text);",variables_global.getconexiongral());
                while (rs.next())
                    {
                        fnewRow[1]=rs.getString("nombre");
                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }
            jtable_modelo_tieres.addRow(fnewRow);
        }
    }

void LimpiarJTable()
 {
     //limpiar la tabla
    while(jtable_modelo_come.getRowCount()>0)jtable_modelo_come.removeRow(0);
 }
void LimpiarJTresponsable()
 {
     //limpiar la tabla
    while(jtable_modelo_tieres.getRowCount()>0)jtable_modelo_tieres.removeRow(0);
 }
void cambiartamanofilas()
 {
     //limpiar la tabla
       int numerofilas=this.jtable_modelo_come.getRowCount();
             for(int i = 0 ;i < numerofilas; i++)
                {
                     jt_comentarios.setRowHeight(i, 60);
                }
  }
   private String DiaSemana(String fe) {
         String dia = "";
       java.util.Date fecha=null;
         try
            {
             fecha = formateador.parse(fe);

           }
        catch (ParseException e)
            {
            //Error, la cadena de texto no se puede convertir en fecha.
            }
        Calendar cal= Calendar.getInstance();
        cal.setTime(fecha);
        //ojo para establecer o recetear cada parte de la fecha por separado
        //cal.set(Calendar.YEAR, fecha.getYear());
        //cal.set(Calendar.MONTH, fecha.getMonth());
        //cal.set(Calendar.DAY_OF_MONTH, fecha.getDay());
        int diaInt = cal.get(Calendar.DAY_OF_WEEK);
        switch (diaInt) {
            case 1:
                dia = "Domingo";
                break;
            case 2:
                dia = "Lunes";
                break;
            case 3:
                dia = "Martes";
                break;
            case 4:
                dia = "Miercoles";
                break;
            case 5:
                dia = "Jueves";
                break;
            case 6:
                dia = "Viernes";
                break;
            case 7:
                dia = "Sabado";
                break;

        }
        return dia;
    }
private String  fechaeuropea(String fecha) {

         //resibe cadena de fecha en formato americano yyyy-MM-dd
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateadoresta.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaeuropa.format(fechaestaeuropa);
       return cadenafecha;

    }
 private String  fechaeuropea(Date fecha) {
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";

       cadenafecha= formateadorestaeuropa.format(fecha);
       return cadenafecha;

    }
private String fechaamericana(Date fe) {
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("yyyy-MM-dd");
       String cadenafecha="";
       cadenafecha= formateadorestaeuropa.format(fe);
       return cadenafecha;

    }
private void conexionicono()
    {
    int cone=0;
    String hora="";
    ClassLoader cldr = this.getClass().getClassLoader();
    java.net.URL tconx   = cldr.getResource("iconos/earth_delete.png");
    java.net.URL tcon   = cldr.getResource("iconos/earth_preferences.png");
     try
                                    {
                                     rs = x.sieuno_executediversosv2("select to_char(timestamp 'now','HH12:MI:SS');",variables_global.getconexiongral());
                                    while (rs.next())
                                        {
                                            cone=1;
                                            hora=rs.getString(1);
                                        }
                                    }
                                    catch(Exception e)
                                        {
                                            System.out.println(e.getMessage());
                                        }

    if(cone==0)
    {
        //JOptionPane.showConfirmDialog(null, "Hola"+imageURL+" "+cldr.toString());
        this.jtbtn_conexion.setIcon(new ImageIcon(tconx));
          if(JOptionPane.showConfirmDialog(null, " No Existe Conexion,  Desea Intentar Reconectarte?")==0){
                     x.estableceConexion();
                     if(variables_global.getError_ingreso()>0)
                        {
                            this.jtbtn_conexion.setIcon(new ImageIcon(tcon));
                            JOptionPane.showMessageDialog(null,"Inteto de Conexion Realizado Con !Exito¡", "Sistema Integral(Reconexion) : Ayuda",1);
                        }
                     else
                        {
                            JOptionPane.showMessageDialog(null,"Error Verifique su Modem o Comuniquese con su Administrador de Red ", "Sistema Integral(Reconexion) : Ayuda",1);
                        }
          }
    }
    else
    {
        JOptionPane.showMessageDialog(null,"Conexion Disponible:"+hora, "Sistema Integral(Reconexion) : Ayuda",1);
        this.jtbtn_conexion.setIcon(new ImageIcon(tcon));
    }
    
    }


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jbtn_recepciones = new javax.swing.JButton();
        jbtn_quit = new javax.swing.JButton();
        jbtn_cat_artic = new javax.swing.JButton();
        jbtn_cortesdiagraf = new javax.swing.JButton();
        jbtn_monedero = new javax.swing.JButton();
        jbtn_ventasagente = new javax.swing.JButton();
        jbtn_apartados = new javax.swing.JButton();
        jbtn_cajaflujo = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jbtn_repvpprovee = new javax.swing.JButton();
        jbtn_ayudahelp = new javax.swing.JButton();
        jbtn_artmasvendidos = new javax.swing.JButton();
        jbtn_costosinventarios = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jt_comentarios = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }}

            ;
            jButton1 = new javax.swing.JButton();
            jbtn_actualizacome = new javax.swing.JButton();
            jScrollPane4 = new javax.swing.JScrollPane();
            jep_visordeartisolicitados = new javax.swing.JEditorPane();
            jPanel4 = new javax.swing.JPanel();
            jbtn_cattareas = new javax.swing.JButton();
            jbtn_insumos = new javax.swing.JButton();
            jbtn_recursosh = new javax.swing.JButton();
            jbtn_ventasvstipo = new javax.swing.JButton();
            jbtn_cxc = new javax.swing.JButton();
            jbtn_checador = new javax.swing.JButton();
            jbtn_encuestascalidad = new javax.swing.JButton();
            jbtn_ventasxmes = new javax.swing.JButton();
            jbtn_diarioventa = new javax.swing.JButton();
            jbtn_facturasimprime = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jPanel5 = new javax.swing.JPanel();
            jbtn_comprasvsventas = new javax.swing.JButton();
            jbtn_viajes = new javax.swing.JButton();
            jbtn_almacenarticulos = new javax.swing.JButton();
            jbtn_distribucioncompras = new javax.swing.JButton();
            jbtn_proveedores = new javax.swing.JButton();
            jbtn_laser = new javax.swing.JButton();
            jtbtn_conexion = new javax.swing.JToggleButton();
            jPanel7 = new javax.swing.JPanel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jep_logo = new javax.swing.JEditorPane();
            jPanel6 = new javax.swing.JPanel();
            jScrollPane3 = new javax.swing.JScrollPane();
            jt_tiendaresponsable = new javax.swing.JTable()
            {
                public boolean isCellEditable(int rowIndex, int mColIndex) {
                    return false;
                }}

                ;
                menuBar = new javax.swing.JMenuBar();
                javax.swing.JMenu fileMenu = new javax.swing.JMenu();
                jmni_escape = new javax.swing.JMenuItem();
                jmni_reconexion = new javax.swing.JMenuItem();
                javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
                jmni_maquinalaser = new javax.swing.JMenu();
                jMenuItem1 = new javax.swing.JMenuItem();
                jMenuItem2 = new javax.swing.JMenuItem();
                jMenuItem3 = new javax.swing.JMenuItem();
                jmni_catalogomonedero = new javax.swing.JMenuItem();
                jmni_eventualidades = new javax.swing.JMenuItem();
                jMenuItem7 = new javax.swing.JMenuItem();
                jMenuItem8 = new javax.swing.JMenuItem();
                jMenu2 = new javax.swing.JMenu();
                jmni_insumos_salidas = new javax.swing.JMenuItem();
                jmn_distribucion = new javax.swing.JMenu();
                jmni_almacendistribucion = new javax.swing.JMenuItem();
                jmni_repvxp = new javax.swing.JMenu();
                jMenuItem6 = new javax.swing.JMenuItem();
                jMenuItem4 = new javax.swing.JMenuItem();
                jmni_ventasxprovee = new javax.swing.JMenuItem();
                jmni_repventaxfam = new javax.swing.JMenuItem();
                jmni_repcostosxsub = new javax.swing.JMenuItem();
                jmni_costoxtemporada = new javax.swing.JMenuItem();
                jmni_articmasvendidos = new javax.swing.JMenuItem();
                jmni_ventapromociones = new javax.swing.JMenuItem();
                jMenuItem10 = new javax.swing.JMenuItem();
                jMenu1 = new javax.swing.JMenu();
                jMenuItem9 = new javax.swing.JMenuItem();
                javax.swing.JMenu helpMenu = new javax.swing.JMenu();
                javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
                jMenuItem5 = new javax.swing.JMenuItem();
                jmni_sugerencia = new javax.swing.JMenuItem();
                jmni_actualizar = new javax.swing.JMenuItem();

                mainPanel.setMaximumSize(new java.awt.Dimension(32767, 40000));
                mainPanel.setName("mainPanel"); // NOI18N
                mainPanel.setPreferredSize(new java.awt.Dimension(1050, 700));
                mainPanel.addFocusListener(new java.awt.event.FocusAdapter() {
                    public void focusGained(java.awt.event.FocusEvent evt) {
                        mainPanelFocusGained(evt);
                    }
                });

                jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
                jPanel1.setName("jPanel1"); // NOI18N

                org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sie_invdis.Sie_invdisApp.class).getContext().getResourceMap(Sie_invdisView.class);
                jbtn_recepciones.setIcon(resourceMap.getIcon("jbtn_recepciones.icon")); // NOI18N
                jbtn_recepciones.setText(resourceMap.getString("jbtn_recepciones.text")); // NOI18N
                jbtn_recepciones.setToolTipText(resourceMap.getString("jbtn_recepciones.toolTipText")); // NOI18N
                jbtn_recepciones.setName("jbtn_recepciones"); // NOI18N
                jbtn_recepciones.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_recepcionesActionPerformed(evt);
                    }
                });

                jbtn_quit.setIcon(resourceMap.getIcon("jbtn_quit.icon")); // NOI18N
                jbtn_quit.setText(resourceMap.getString("jbtn_quit.text")); // NOI18N
                jbtn_quit.setName("jbtn_quit"); // NOI18N
                jbtn_quit.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_quitActionPerformed(evt);
                    }
                });

                jbtn_cat_artic.setIcon(resourceMap.getIcon("jbtn_cat_artic.icon")); // NOI18N
                jbtn_cat_artic.setText(resourceMap.getString("jbtn_cat_artic.text")); // NOI18N
                jbtn_cat_artic.setToolTipText(resourceMap.getString("jbtn_cat_artic.toolTipText")); // NOI18N
                jbtn_cat_artic.setName("jbtn_cat_artic"); // NOI18N
                jbtn_cat_artic.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_cat_articActionPerformed(evt);
                    }
                });

                jbtn_cortesdiagraf.setIcon(resourceMap.getIcon("jbtn_cortesdiagraf.icon")); // NOI18N
                jbtn_cortesdiagraf.setText(resourceMap.getString("jbtn_cortesdiagraf.text")); // NOI18N
                jbtn_cortesdiagraf.setToolTipText(resourceMap.getString("jbtn_cortesdiagraf.toolTipText")); // NOI18N
                jbtn_cortesdiagraf.setName("jbtn_cortesdiagraf"); // NOI18N
                jbtn_cortesdiagraf.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_cortesdiagrafActionPerformed(evt);
                    }
                });

                jbtn_monedero.setIcon(resourceMap.getIcon("jbtn_monedero.icon")); // NOI18N
                jbtn_monedero.setText(resourceMap.getString("jbtn_monedero.text")); // NOI18N
                jbtn_monedero.setToolTipText(resourceMap.getString("jbtn_monedero.toolTipText")); // NOI18N
                jbtn_monedero.setName("jbtn_monedero"); // NOI18N
                jbtn_monedero.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_monederoActionPerformed(evt);
                    }
                });

                jbtn_ventasagente.setIcon(resourceMap.getIcon("jbtn_ventasagente.icon")); // NOI18N
                jbtn_ventasagente.setText(resourceMap.getString("jbtn_ventasagente.text")); // NOI18N
                jbtn_ventasagente.setToolTipText(resourceMap.getString("jbtn_ventasagente.toolTipText")); // NOI18N
                jbtn_ventasagente.setName("jbtn_ventasagente"); // NOI18N
                jbtn_ventasagente.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_ventasagenteActionPerformed(evt);
                    }
                });

                jbtn_apartados.setIcon(resourceMap.getIcon("jbtn_apartados.icon")); // NOI18N
                jbtn_apartados.setText(resourceMap.getString("jbtn_apartados.text")); // NOI18N
                jbtn_apartados.setName("jbtn_apartados"); // NOI18N
                jbtn_apartados.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_apartadosActionPerformed(evt);
                    }
                });

                jbtn_cajaflujo.setIcon(resourceMap.getIcon("jbtn_cajaflujo.icon")); // NOI18N
                jbtn_cajaflujo.setText(resourceMap.getString("jbtn_cajaflujo.text")); // NOI18N
                jbtn_cajaflujo.setName("jbtn_cajaflujo"); // NOI18N
                jbtn_cajaflujo.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_cajaflujoActionPerformed(evt);
                    }
                });

                javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
                jPanel1.setLayout(jPanel1Layout);
                jPanel1Layout.setHorizontalGroup(
                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jbtn_cat_artic, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(2, 2, 2)
                        .addComponent(jbtn_recepciones, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtn_ventasagente, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtn_cortesdiagraf, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtn_cajaflujo, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtn_monedero, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtn_apartados)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtn_quit, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                );
                jPanel1Layout.setVerticalGroup(
                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jbtn_cat_artic)
                        .addComponent(jbtn_recepciones)
                        .addComponent(jbtn_ventasagente)
                        .addComponent(jbtn_cortesdiagraf)
                        .addComponent(jbtn_cajaflujo)
                        .addComponent(jbtn_quit)
                        .addComponent(jbtn_apartados)
                        .addComponent(jbtn_monedero))
                );

                jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
                jPanel2.setName("jPanel2"); // NOI18N

                jbtn_repvpprovee.setIcon(resourceMap.getIcon("jbtn_repvpprovee.icon")); // NOI18N
                jbtn_repvpprovee.setText(resourceMap.getString("jbtn_repvpprovee.text")); // NOI18N
                jbtn_repvpprovee.setName("jbtn_repvpprovee"); // NOI18N
                jbtn_repvpprovee.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_repvpproveeActionPerformed(evt);
                    }
                });

                jbtn_ayudahelp.setIcon(resourceMap.getIcon("jbtn_ayudahelp.icon")); // NOI18N
                jbtn_ayudahelp.setText(resourceMap.getString("jbtn_ayudahelp.text")); // NOI18N
                jbtn_ayudahelp.setToolTipText(resourceMap.getString("jbtn_ayudahelp.toolTipText")); // NOI18N
                jbtn_ayudahelp.setName("jbtn_ayudahelp"); // NOI18N
                jbtn_ayudahelp.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_ayudahelpActionPerformed(evt);
                    }
                });

                jbtn_artmasvendidos.setText(resourceMap.getString("jbtn_artmasvendidos.text")); // NOI18N
                jbtn_artmasvendidos.setName("jbtn_artmasvendidos"); // NOI18N
                jbtn_artmasvendidos.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_artmasvendidosActionPerformed(evt);
                    }
                });

                jbtn_costosinventarios.setText(resourceMap.getString("jbtn_costosinventarios.text")); // NOI18N
                jbtn_costosinventarios.setName("jbtn_costosinventarios"); // NOI18N
                jbtn_costosinventarios.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_costosinventariosActionPerformed(evt);
                    }
                });

                jButton3.setIcon(resourceMap.getIcon("jButton3.icon")); // NOI18N
                jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
                jButton3.setName("jButton3"); // NOI18N
                jButton3.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jButton3ActionPerformed(evt);
                    }
                });

                javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
                jPanel2.setLayout(jPanel2Layout);
                jPanel2Layout.setHorizontalGroup(
                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(jbtn_repvpprovee, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(27, 27, 27)
                        .addComponent(jButton3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)
                        .addComponent(jbtn_artmasvendidos, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_costosinventarios, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_ayudahelp, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                );
                jPanel2Layout.setVerticalGroup(
                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jbtn_ayudahelp)
                            .addComponent(jbtn_repvpprovee)
                            .addComponent(jbtn_costosinventarios)
                            .addComponent(jbtn_artmasvendidos)
                            .addComponent(jButton3)))
                );

                jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel3.border.title"))); // NOI18N
                jPanel3.setName("jPanel3"); // NOI18N

                jScrollPane2.setName("jScrollPane2"); // NOI18N

                jt_comentarios.setModel(this.jtable_modelo_come);
                jt_comentarios.setName("jt_comentarios"); // NOI18N
                jt_comentarios.addMouseListener(new java.awt.event.MouseAdapter() {
                    public void mouseClicked(java.awt.event.MouseEvent evt) {
                        jt_comentariosMouseClicked(evt);
                        if(evt.getClickCount() >= 2)
                        {
                            llamarcomen();
                            //System.out.println(" double click" );
                        }
                        else
                        {
                            dioclick1();
                        }
                    }
                });
                jScrollPane2.setViewportView(jt_comentarios);

                jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N
                jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
                jButton1.setName("jButton1"); // NOI18N
                jButton1.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jButton1ActionPerformed(evt);
                    }
                });

                jbtn_actualizacome.setIcon(resourceMap.getIcon("jbtn_actualizacome.icon")); // NOI18N
                jbtn_actualizacome.setText(resourceMap.getString("jbtn_actualizacome.text")); // NOI18N
                jbtn_actualizacome.setName("jbtn_actualizacome"); // NOI18N
                jbtn_actualizacome.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_actualizacomeActionPerformed(evt);
                    }
                });

                jScrollPane4.setName("jScrollPane4"); // NOI18N

                jep_visordeartisolicitados.setContentType(resourceMap.getString("jep_visordeartisolicitados.contentType")); // NOI18N
                jep_visordeartisolicitados.setName("jep_visordeartisolicitados"); // NOI18N
                jScrollPane4.setViewportView(jep_visordeartisolicitados);

                javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
                jPanel3.setLayout(jPanel3Layout);
                jPanel3Layout.setHorizontalGroup(
                    jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 664, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 513, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton1)
                            .addComponent(jbtn_actualizacome))
                        .addContainerGap())
                );
                jPanel3Layout.setVerticalGroup(
                    jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(jButton1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jbtn_actualizacome))
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(22, 22, 22))
                );

                jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
                jPanel4.setName("jPanel4"); // NOI18N

                jbtn_cattareas.setIcon(resourceMap.getIcon("jbtn_cattareas.icon")); // NOI18N
                jbtn_cattareas.setText(resourceMap.getString("jbtn_cattareas.text")); // NOI18N
                jbtn_cattareas.setName("jbtn_cattareas"); // NOI18N
                jbtn_cattareas.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_cattareasActionPerformed(evt);
                    }
                });

                jbtn_insumos.setIcon(resourceMap.getIcon("jbtn_insumos.icon")); // NOI18N
                jbtn_insumos.setText(resourceMap.getString("jbtn_insumos.text")); // NOI18N
                jbtn_insumos.setName("jbtn_insumos"); // NOI18N
                jbtn_insumos.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_insumosActionPerformed(evt);
                    }
                });

                jbtn_recursosh.setIcon(resourceMap.getIcon("jbtn_recursosh.icon")); // NOI18N
                jbtn_recursosh.setText(resourceMap.getString("jbtn_recursosh.text")); // NOI18N
                jbtn_recursosh.setName("jbtn_recursosh"); // NOI18N
                jbtn_recursosh.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_recursoshActionPerformed(evt);
                    }
                });

                jbtn_ventasvstipo.setIcon(resourceMap.getIcon("jbtn_ventasvstipo.icon")); // NOI18N
                jbtn_ventasvstipo.setText(resourceMap.getString("jbtn_ventasvstipo.text")); // NOI18N
                jbtn_ventasvstipo.setName("jbtn_ventasvstipo"); // NOI18N
                jbtn_ventasvstipo.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_ventasvstipoActionPerformed(evt);
                    }
                });

                jbtn_cxc.setIcon(resourceMap.getIcon("jbtn_cxc.icon")); // NOI18N
                jbtn_cxc.setText(resourceMap.getString("jbtn_cxc.text")); // NOI18N
                jbtn_cxc.setName("jbtn_cxc"); // NOI18N
                jbtn_cxc.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_cxcActionPerformed(evt);
                    }
                });

                jbtn_checador.setIcon(resourceMap.getIcon("jbtn_checador.icon")); // NOI18N
                jbtn_checador.setText(resourceMap.getString("jbtn_checador.text")); // NOI18N
                jbtn_checador.setName("jbtn_checador"); // NOI18N
                jbtn_checador.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_checadorActionPerformed(evt);
                    }
                });

                jbtn_encuestascalidad.setIcon(resourceMap.getIcon("jbtn_encuestascalidad.icon")); // NOI18N
                jbtn_encuestascalidad.setText(resourceMap.getString("jbtn_encuestascalidad.text")); // NOI18N
                jbtn_encuestascalidad.setName("jbtn_encuestascalidad"); // NOI18N
                jbtn_encuestascalidad.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_encuestascalidadActionPerformed(evt);
                    }
                });

                jbtn_ventasxmes.setIcon(resourceMap.getIcon("jbtn_ventasxmes.icon")); // NOI18N
                jbtn_ventasxmes.setText(resourceMap.getString("jbtn_ventasxmes.text")); // NOI18N
                jbtn_ventasxmes.setName("jbtn_ventasxmes"); // NOI18N
                jbtn_ventasxmes.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_ventasxmesActionPerformed(evt);
                    }
                });

                jbtn_diarioventa.setIcon(resourceMap.getIcon("jbtn_diarioventa.icon")); // NOI18N
                jbtn_diarioventa.setText(resourceMap.getString("jbtn_diarioventa.text")); // NOI18N
                jbtn_diarioventa.setName("jbtn_diarioventa"); // NOI18N
                jbtn_diarioventa.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_diarioventaActionPerformed(evt);
                    }
                });

                jbtn_facturasimprime.setIcon(resourceMap.getIcon("jbtn_facturasimprime.icon")); // NOI18N
                jbtn_facturasimprime.setText(resourceMap.getString("jbtn_facturasimprime.text")); // NOI18N
                jbtn_facturasimprime.setName("jbtn_facturasimprime"); // NOI18N
                jbtn_facturasimprime.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_facturasimprimeActionPerformed(evt);
                    }
                });

                jButton2.setIcon(resourceMap.getIcon("jButton2.icon")); // NOI18N
                jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
                jButton2.setName("jButton2"); // NOI18N
                jButton2.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jButton2ActionPerformed(evt);
                    }
                });

                javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
                jPanel4.setLayout(jPanel4Layout);
                jPanel4Layout.setHorizontalGroup(
                    jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jbtn_cattareas, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)
                    .addComponent(jbtn_insumos, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)
                    .addComponent(jbtn_recursosh, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jbtn_encuestascalidad, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                            .addComponent(jbtn_checador, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                            .addComponent(jbtn_ventasxmes, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                            .addComponent(jbtn_cxc, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                            .addComponent(jbtn_ventasvstipo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                            .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                            .addComponent(jbtn_facturasimprime, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                            .addComponent(jbtn_diarioventa, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE))
                        .addContainerGap())
                );
                jPanel4Layout.setVerticalGroup(
                    jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jbtn_cattareas)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_insumos)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_recursosh)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 70, Short.MAX_VALUE)
                        .addComponent(jButton2)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_facturasimprime)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jbtn_diarioventa)
                        .addGap(11, 11, 11)
                        .addComponent(jbtn_ventasvstipo)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_ventasxmes)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_cxc)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_checador)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_encuestascalidad)
                        .addContainerGap())
                );

                jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel5.border.title"))); // NOI18N
                jPanel5.setName("jPanel5"); // NOI18N

                jbtn_comprasvsventas.setText(resourceMap.getString("jbtn_comprasvsventas.text")); // NOI18N
                jbtn_comprasvsventas.setName("jbtn_comprasvsventas"); // NOI18N
                jbtn_comprasvsventas.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_comprasvsventasActionPerformed(evt);
                    }
                });

                jbtn_viajes.setIcon(resourceMap.getIcon("jbtn_viajes.icon")); // NOI18N
                jbtn_viajes.setText(resourceMap.getString("jbtn_viajes.text")); // NOI18N
                jbtn_viajes.setName("jbtn_viajes"); // NOI18N
                jbtn_viajes.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_viajesActionPerformed(evt);
                    }
                });

                jbtn_almacenarticulos.setIcon(resourceMap.getIcon("jbtn_almacenarticulos.icon")); // NOI18N
                jbtn_almacenarticulos.setText(resourceMap.getString("jbtn_almacenarticulos.text")); // NOI18N
                jbtn_almacenarticulos.setName("jbtn_almacenarticulos"); // NOI18N
                jbtn_almacenarticulos.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_almacenarticulosActionPerformed(evt);
                    }
                });

                jbtn_distribucioncompras.setIcon(resourceMap.getIcon("jbtn_distribucioncompras.icon")); // NOI18N
                jbtn_distribucioncompras.setText(resourceMap.getString("jbtn_distribucioncompras.text")); // NOI18N
                jbtn_distribucioncompras.setName("jbtn_distribucioncompras"); // NOI18N
                jbtn_distribucioncompras.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_distribucioncomprasActionPerformed(evt);
                    }
                });

                jbtn_proveedores.setIcon(resourceMap.getIcon("jbtn_proveedores.icon")); // NOI18N
                jbtn_proveedores.setText(resourceMap.getString("jbtn_proveedores.text")); // NOI18N
                jbtn_proveedores.setName("jbtn_proveedores"); // NOI18N
                jbtn_proveedores.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_proveedoresActionPerformed(evt);
                    }
                });

                jbtn_laser.setIcon(resourceMap.getIcon("jbtn_laser.icon")); // NOI18N
                jbtn_laser.setText(resourceMap.getString("jbtn_laser.text")); // NOI18N
                jbtn_laser.setName("jbtn_laser"); // NOI18N
                jbtn_laser.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_laserActionPerformed(evt);
                    }
                });

                jtbtn_conexion.setIcon(resourceMap.getIcon("jtbtn_conexion.icon")); // NOI18N
                jtbtn_conexion.setText(resourceMap.getString("jtbtn_conexion.text")); // NOI18N
                jtbtn_conexion.setToolTipText(resourceMap.getString("jtbtn_conexion.toolTipText")); // NOI18N
                jtbtn_conexion.setName("jtbtn_conexion"); // NOI18N
                jtbtn_conexion.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jtbtn_conexionActionPerformed(evt);
                    }
                });

                javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
                jPanel5.setLayout(jPanel5Layout);
                jPanel5Layout.setHorizontalGroup(
                    jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jbtn_almacenarticulos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addComponent(jbtn_distribucioncompras, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addComponent(jbtn_comprasvsventas, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addComponent(jbtn_viajes, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addComponent(jbtn_proveedores, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addComponent(jbtn_laser, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jtbtn_conexion)))
                        .addContainerGap())
                );
                jPanel5Layout.setVerticalGroup(
                    jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jbtn_distribucioncompras)
                        .addGap(12, 12, 12)
                        .addComponent(jbtn_almacenarticulos)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_comprasvsventas)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_viajes)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_proveedores)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 158, Short.MAX_VALUE)
                        .addComponent(jbtn_laser)
                        .addGap(59, 59, 59)
                        .addComponent(jtbtn_conexion, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE))
                );

                jPanel7.setBorder(javax.swing.BorderFactory.createEtchedBorder());
                jPanel7.setName("jPanel7"); // NOI18N

                jScrollPane1.setName("jScrollPane1"); // NOI18N

                jep_logo.setContentType(resourceMap.getString("jep_logo.contentType")); // NOI18N
                jep_logo.setEditable(false);
                jep_logo.setText(resourceMap.getString("jep_logo.text")); // NOI18N
                jep_logo.setName("jep_logo"); // NOI18N
                jScrollPane1.setViewportView(jep_logo);

                jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel6.border.title"))); // NOI18N
                jPanel6.setName("jPanel6"); // NOI18N

                jScrollPane3.setName("jScrollPane3"); // NOI18N

                jt_tiendaresponsable.setModel(this.jtable_modelo_tieres);
                jt_tiendaresponsable.setName("jt_tiendaresponsable"); // NOI18N
                jt_comentarios.addMouseListener(new java.awt.event.MouseAdapter() {
                    public void mouseClicked(java.awt.event.MouseEvent evt) {
                        jt_comentariosMouseClicked(evt);
                        if(evt.getClickCount() >= 2)
                        {
                            llamarcomen();
                            //System.out.println(" double click" );

                        }
                    }
                });
                jScrollPane3.setViewportView(jt_tiendaresponsable);

                javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
                jPanel6.setLayout(jPanel6Layout);
                jPanel6Layout.setHorizontalGroup(
                    jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)
                );
                jPanel6Layout.setVerticalGroup(
                    jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                );

                javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
                jPanel7.setLayout(jPanel7Layout);
                jPanel7Layout.setHorizontalGroup(
                    jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 368, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(23, Short.MAX_VALUE))
                );
                jPanel7Layout.setVerticalGroup(
                    jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)
                    .addComponent(jPanel6, 0, 209, Short.MAX_VALUE)
                );

                javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
                mainPanel.setLayout(mainPanelLayout);
                mainPanelLayout.setHorizontalGroup(
                    mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
                                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel3, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                );
                mainPanelLayout.setVerticalGroup(
                    mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(mainPanelLayout.createSequentialGroup()
                                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanel3, 0, 300, Short.MAX_VALUE))
                            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                );

                menuBar.setName("menuBar"); // NOI18N

                fileMenu.setLabel(resourceMap.getString("fileMenu.label")); // NOI18N
                fileMenu.setName("fileMenu"); // NOI18N

                jmni_escape.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
                jmni_escape.setText(resourceMap.getString("jmni_escape.text")); // NOI18N
                jmni_escape.setName("jmni_escape"); // NOI18N
                jmni_escape.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_escapeActionPerformed(evt);
                    }
                });
                fileMenu.add(jmni_escape);

                jmni_reconexion.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F12, java.awt.event.InputEvent.ALT_MASK));
                jmni_reconexion.setIcon(resourceMap.getIcon("jmni_reconexion.icon")); // NOI18N
                jmni_reconexion.setText(resourceMap.getString("jmni_reconexion.text")); // NOI18N
                jmni_reconexion.setName("jmni_reconexion"); // NOI18N
                jmni_reconexion.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_reconexionActionPerformed(evt);
                    }
                });
                fileMenu.add(jmni_reconexion);

                exitMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
                exitMenuItem.setIcon(resourceMap.getIcon("exitMenuItem.icon")); // NOI18N
                exitMenuItem.setText(resourceMap.getString("exitMenuItem.text")); // NOI18N
                exitMenuItem.setName("exitMenuItem"); // NOI18N
                exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        exitMenuItemActionPerformed(evt);
                    }
                });
                fileMenu.add(exitMenuItem);

                menuBar.add(fileMenu);

                jmni_maquinalaser.setIcon(resourceMap.getIcon("jmni_maquinalaser.icon")); // NOI18N
                jmni_maquinalaser.setText(resourceMap.getString("jmni_maquinalaser.text")); // NOI18N
                jmni_maquinalaser.setName("jmni_maquinalaser"); // NOI18N
                jmni_maquinalaser.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_maquinalaserActionPerformed(evt);
                    }
                });

                jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK));
                jMenuItem1.setIcon(resourceMap.getIcon("jMenuItem1.icon")); // NOI18N
                jMenuItem1.setText(resourceMap.getString("jMenuItem1.text")); // NOI18N
                jMenuItem1.setName("jMenuItem1"); // NOI18N
                jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem1ActionPerformed(evt);
                    }
                });
                jmni_maquinalaser.add(jMenuItem1);

                jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.ALT_MASK));
                jMenuItem2.setIcon(resourceMap.getIcon("jMenuItem2.icon")); // NOI18N
                jMenuItem2.setText(resourceMap.getString("jMenuItem2.text")); // NOI18N
                jMenuItem2.setName("jMenuItem2"); // NOI18N
                jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem2ActionPerformed(evt);
                    }
                });
                jmni_maquinalaser.add(jMenuItem2);

                jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.ALT_MASK));
                jMenuItem3.setIcon(resourceMap.getIcon("jMenuItem3.icon")); // NOI18N
                jMenuItem3.setText(resourceMap.getString("jMenuItem3.text")); // NOI18N
                jMenuItem3.setName("jMenuItem3"); // NOI18N
                jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem3ActionPerformed(evt);
                    }
                });
                jmni_maquinalaser.add(jMenuItem3);

                jmni_catalogomonedero.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.ALT_MASK));
                jmni_catalogomonedero.setIcon(resourceMap.getIcon("jmni_catalogomonedero.icon")); // NOI18N
                jmni_catalogomonedero.setText(resourceMap.getString("jmni_catalogomonedero.text")); // NOI18N
                jmni_catalogomonedero.setName("jmni_catalogomonedero"); // NOI18N
                jmni_maquinalaser.add(jmni_catalogomonedero);

                jmni_eventualidades.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F10, java.awt.event.InputEvent.ALT_MASK));
                jmni_eventualidades.setIcon(resourceMap.getIcon("jmni_eventualidades.icon")); // NOI18N
                jmni_eventualidades.setText(resourceMap.getString("jmni_eventualidades.text")); // NOI18N
                jmni_eventualidades.setName("jmni_eventualidades"); // NOI18N
                jmni_eventualidades.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_eventualidadesActionPerformed(evt);
                    }
                });
                jmni_maquinalaser.add(jmni_eventualidades);

                jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.ALT_MASK));
                jMenuItem7.setIcon(resourceMap.getIcon("jMenuItem7.icon")); // NOI18N
                jMenuItem7.setText(resourceMap.getString("jMenuItem7.text")); // NOI18N
                jMenuItem7.setName("jMenuItem7"); // NOI18N
                jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem7ActionPerformed(evt);
                    }
                });
                jmni_maquinalaser.add(jMenuItem7);

                jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_MASK));
                jMenuItem8.setIcon(resourceMap.getIcon("jMenuItem8.icon")); // NOI18N
                jMenuItem8.setText(resourceMap.getString("jMenuItem8.text")); // NOI18N
                jMenuItem8.setName("jMenuItem8"); // NOI18N
                jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem8ActionPerformed(evt);
                    }
                });
                jmni_maquinalaser.add(jMenuItem8);

                menuBar.add(jmni_maquinalaser);

                jMenu2.setText(resourceMap.getString("jMenu2.text")); // NOI18N
                jMenu2.setName("jMenu2"); // NOI18N

                jmni_insumos_salidas.setText(resourceMap.getString("jmni_insumos_salidas.text")); // NOI18N
                jmni_insumos_salidas.setName("jmni_insumos_salidas"); // NOI18N
                jmni_insumos_salidas.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_insumos_salidasActionPerformed(evt);
                    }
                });
                jMenu2.add(jmni_insumos_salidas);

                menuBar.add(jMenu2);

                jmn_distribucion.setText(resourceMap.getString("jmn_distribucion.text")); // NOI18N
                jmn_distribucion.setName("jmn_distribucion"); // NOI18N

                jmni_almacendistribucion.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.ALT_MASK));
                jmni_almacendistribucion.setText(resourceMap.getString("jmni_almacendistribucion.text")); // NOI18N
                jmni_almacendistribucion.setName("jmni_almacendistribucion"); // NOI18N
                jmni_almacendistribucion.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_almacendistribucionActionPerformed(evt);
                    }
                });
                jmn_distribucion.add(jmni_almacendistribucion);

                menuBar.add(jmn_distribucion);

                jmni_repvxp.setText(resourceMap.getString("jmni_repvxp.text")); // NOI18N
                jmni_repvxp.setName("jmni_repvxp"); // NOI18N

                jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));
                jMenuItem6.setIcon(resourceMap.getIcon("jMenuItem6.icon")); // NOI18N
                jMenuItem6.setText(resourceMap.getString("jMenuItem6.text")); // NOI18N
                jMenuItem6.setName("jMenuItem6"); // NOI18N
                jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem6ActionPerformed(evt);
                    }
                });
                jmni_repvxp.add(jMenuItem6);

                jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.ALT_MASK));
                jMenuItem4.setIcon(resourceMap.getIcon("jMenuItem4.icon")); // NOI18N
                jMenuItem4.setText(resourceMap.getString("jMenuItem4.text")); // NOI18N
                jMenuItem4.setName("jMenuItem4"); // NOI18N
                jmni_repvxp.add(jMenuItem4);

                jmni_ventasxprovee.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK));
                jmni_ventasxprovee.setText(resourceMap.getString("jmni_ventasxprovee.text")); // NOI18N
                jmni_ventasxprovee.setName("jmni_ventasxprovee"); // NOI18N
                jmni_ventasxprovee.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_ventasxproveeActionPerformed(evt);
                    }
                });
                jmni_repvxp.add(jmni_ventasxprovee);

                jmni_repventaxfam.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.ALT_MASK));
                jmni_repventaxfam.setText(resourceMap.getString("jmni_repventaxfam.text")); // NOI18N
                jmni_repventaxfam.setName("jmni_repventaxfam"); // NOI18N
                jmni_repventaxfam.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_repventaxfamActionPerformed(evt);
                    }
                });
                jmni_repvxp.add(jmni_repventaxfam);

                jmni_repcostosxsub.setText(resourceMap.getString("jmni_repcostosxsub.text")); // NOI18N
                jmni_repcostosxsub.setName("jmni_repcostosxsub"); // NOI18N
                jmni_repcostosxsub.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_repcostosxsubActionPerformed(evt);
                    }
                });
                jmni_repvxp.add(jmni_repcostosxsub);

                jmni_costoxtemporada.setText(resourceMap.getString("jmni_costoxtemporada.text")); // NOI18N
                jmni_costoxtemporada.setName("jmni_costoxtemporada"); // NOI18N
                jmni_costoxtemporada.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_costoxtemporadaActionPerformed(evt);
                    }
                });
                jmni_repvxp.add(jmni_costoxtemporada);

                jmni_articmasvendidos.setText(resourceMap.getString("jmni_articmasvendidos.text")); // NOI18N
                jmni_articmasvendidos.setName("jmni_articmasvendidos"); // NOI18N
                jmni_articmasvendidos.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_articmasvendidosActionPerformed(evt);
                    }
                });
                jmni_repvxp.add(jmni_articmasvendidos);

                jmni_ventapromociones.setText(resourceMap.getString("jmni_ventapromociones.text")); // NOI18N
                jmni_ventapromociones.setName("jmni_ventapromociones"); // NOI18N
                jmni_ventapromociones.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_ventapromocionesActionPerformed(evt);
                    }
                });
                jmni_repvxp.add(jmni_ventapromociones);

                jMenuItem10.setText(resourceMap.getString("jMenuItem10.text")); // NOI18N
                jMenuItem10.setName("jMenuItem10"); // NOI18N
                jMenuItem10.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem10ActionPerformed(evt);
                    }
                });
                jmni_repvxp.add(jMenuItem10);

                menuBar.add(jmni_repvxp);

                jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N
                jMenu1.setName("jMenu1"); // NOI18N

                jMenuItem9.setText(resourceMap.getString("jMenuItem9.text")); // NOI18N
                jMenuItem9.setName("jMenuItem9"); // NOI18N
                jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem9ActionPerformed(evt);
                    }
                });
                jMenu1.add(jMenuItem9);

                menuBar.add(jMenu1);

                helpMenu.setIcon(resourceMap.getIcon("helpMenu.icon")); // NOI18N
                helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
                helpMenu.setName("helpMenu"); // NOI18N

                javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(sie_invdis.Sie_invdisApp.class).getContext().getActionMap(Sie_invdisView.class, this);
                aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
                aboutMenuItem.setIcon(resourceMap.getIcon("aboutMenuItem.icon")); // NOI18N
                aboutMenuItem.setName("aboutMenuItem"); // NOI18N
                helpMenu.add(aboutMenuItem);

                jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_MASK));
                jMenuItem5.setIcon(resourceMap.getIcon("jMenuItem5.icon")); // NOI18N
                jMenuItem5.setText(resourceMap.getString("jMenuItem5.text")); // NOI18N
                jMenuItem5.setName("jMenuItem5"); // NOI18N
                jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jMenuItem5ActionPerformed(evt);
                    }
                });
                helpMenu.add(jMenuItem5);

                jmni_sugerencia.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.ALT_MASK));
                jmni_sugerencia.setText(resourceMap.getString("jmni_sugerencia.text")); // NOI18N
                jmni_sugerencia.setName("jmni_sugerencia"); // NOI18N
                jmni_sugerencia.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_sugerenciaActionPerformed(evt);
                    }
                });
                helpMenu.add(jmni_sugerencia);

                jmni_actualizar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, 0));
                jmni_actualizar.setIcon(resourceMap.getIcon("jmni_actualizar.icon")); // NOI18N
                jmni_actualizar.setText(resourceMap.getString("jmni_actualizar.text")); // NOI18N
                jmni_actualizar.setName("jmni_actualizar"); // NOI18N
                jmni_actualizar.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_actualizarActionPerformed(evt);
                    }
                });
                helpMenu.add(jmni_actualizar);

                menuBar.add(helpMenu);

                setComponent(mainPanel);
                setMenuBar(menuBar);
            }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed

        // TODO add your handling code here:
        this.jbtn_recepcionesActionPerformed(evt);
       
        
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jmni_maquinalaserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_maquinalaserActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jmni_maquinalaserActionPerformed

    private void mainPanelFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_mainPanelFocusGained
       
    }//GEN-LAST:event_mainPanelFocusGained

    private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
        // TODO add your handling code here:
        this.jbtn_quitActionPerformed(evt);


    }//GEN-LAST:event_exitMenuItemActionPerformed

    private void jbtn_recepcionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_recepcionesActionPerformed
        // TODO add your handling code here:
       // JFrame mainFrame = Sie_invdisApp.getApplication().getMainFrame();
        //com_distri_folios fd=new com_distri_folios(mainFrame,true);
        
            com_distri_folios fd=new com_distri_folios();
            fd.pack();
            fd.setVisible(true);
  
    }//GEN-LAST:event_jbtn_recepcionesActionPerformed

    private void jbtn_quitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_quitActionPerformed
            // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Realmente Desea Salir?")==0){
               x.cierraConexionv2(variables_global.getconexiongral());   // TODO add your handling code here:
               System.exit(0);// para cerrar la aplicacion
        }

        
    }//GEN-LAST:event_jbtn_quitActionPerformed

    private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed
        // TODO add your handling code here:
        this.ayuda();
    }//GEN-LAST:event_jMenuItem5ActionPerformed

    private void jbtn_ayudahelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_ayudahelpActionPerformed
        // TODO add your handling code here:
        this.ayuda();
    }//GEN-LAST:event_jbtn_ayudahelpActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
          this.jbtn_cat_articActionPerformed(evt);
       
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jbtn_cat_articActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_cat_articActionPerformed
        // TODO add your handling code here:
        //JFrame mainFrame = Sie_invdisApp.getApplication().getMainFrame();
        //articulos_sie_catalogo cas=new articulos_sie_catalogo(mainFrame,true);
  if((variables_global.getnivelusu()<4) || (variables_global.getnivelusu()==8))
        {
        articulos_sie_catalogo cas=new articulos_sie_catalogo();
        cas.pack();
        cas.setVisible(true);        // TODO add your handling code here:
        }
       
    }//GEN-LAST:event_jbtn_cat_articActionPerformed

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        // TODO add your handling code here:
        this.jmni_almacendistribucionActionPerformed(evt);
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    private void jbtn_cortesdiagrafActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_cortesdiagrafActionPerformed
        // TODO add your handling code here:
    if (variables_global.getnivelusu()< 3)
           {
                    ventas_sie_cortes_detalle fvsc=new ventas_sie_cortes_detalle();
                    fvsc.pack();
                    fvsc.setVisible(true);
            }
    else
            {
               JOptionPane.showMessageDialog(null,"Opcion no disponible en su Perfil:", "Sistema Integral(Grafica cortes del dia) : Ayuda",1);
            }
     
        
}//GEN-LAST:event_jbtn_cortesdiagrafActionPerformed

    private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed
        // TODO add your handling code here:
        this.jbtn_cortesdiagrafActionPerformed(evt);
        
    }//GEN-LAST:event_jMenuItem6ActionPerformed

    private void jbtn_monederoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_monederoActionPerformed
        // TODO add your handling code here:
         if (monedero == null)
         {
            monedero = new monedero_sie_catalogo();
            monedero.pack();
            monedero.setVisible(true);
         }
         else
         {
               monedero.setVisible(true);
         }



         
    }//GEN-LAST:event_jbtn_monederoActionPerformed

    private void jbtn_ventasagenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_ventasagenteActionPerformed
        // TODO add your handling code here:
        if (variables_global.getnivelusu()< 3)
            {


            if (agentes == null)
                 {
                    agentes = new ventas_sie_agentes();
                    agentes.pack();
                    agentes.setVisible(true);
                }
                else
                {
                    agentes.dispose();
                    agentes = new ventas_sie_agentes();
                    agentes.pack();
                    agentes.setVisible(true);
                   
                }
          }
        else
            {
               JOptionPane.showMessageDialog(null,"Opcion no disponible en su Perfil:", "Sistema Integral(Grafica cortes del dia) : Ayuda",1);
            }
    }//GEN-LAST:event_jbtn_ventasagenteActionPerformed

    private void jbtn_repvpproveeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_repvpproveeActionPerformed
        // TODO add your handling code here:
     
            if (variables_global.getnivelusu()< 3)
                {
                if (repartmasven == null)
                    {
                    repartmasven = new articulos_sie_rep_masvenxp();
                    repartmasven.pack();
                    repartmasven.setVisible(true);
                    }
                    else
                    {
                        repartmasven.dispose();
                        repartmasven = new articulos_sie_rep_masvenxp();
                        repartmasven.pack();
                        repartmasven.setVisible(true);
                    }
              }
            else
                {
                   JOptionPane.showMessageDialog(null,"Opcion no disponible en su Perfil:", "Sistema Integral(Grafica cortes del dia) : Ayuda",1);
                }
       
}//GEN-LAST:event_jbtn_repvpproveeActionPerformed

    private void jmni_ventasxproveeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_ventasxproveeActionPerformed
        // TODO add your handling code here:
        this.jbtn_repvpproveeActionPerformed(evt);
        
}//GEN-LAST:event_jmni_ventasxproveeActionPerformed

    private void jmni_repventaxfamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_repventaxfamActionPerformed
        // TODO add your handling code here:

        this.jbtn_artmasvendidosActionPerformed(evt);
    }//GEN-LAST:event_jmni_repventaxfamActionPerformed

    private void jmni_repcostosxsubActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_repcostosxsubActionPerformed
        // TODO add your handling code here:
        //this.jbtn_costosxsubfamActionPerformed(evt);
        this.jbtn_costosinventariosActionPerformed(evt);
    }//GEN-LAST:event_jmni_repcostosxsubActionPerformed

    private void jbtn_artmasvendidosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_artmasvendidosActionPerformed
        // TODO add your handling code here:
           if (variables_global.getnivelusu()< 3)
            {


            if (reparmasven == null)
                 {
                    reparmasven = new articulos_sie_rep_masvendidos();
                    reparmasven.pack();
                    reparmasven.setVisible(true);
                }
                else
                {
                    reparmasven.dispose();
                    reparmasven = new articulos_sie_rep_masvendidos();
                    reparmasven.pack();
                    reparmasven.setVisible(true);

                }
          }
        else
            {
               JOptionPane.showMessageDialog(null,"Opcion no disponible en su Perfil:", "Sistema Integral(Grafica cortes del dia) : Ayuda",1);
            }
    }//GEN-LAST:event_jbtn_artmasvendidosActionPerformed

    private void jmni_articmasvendidosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_articmasvendidosActionPerformed
        // TODO add your handling code here:
        this.jbtn_artmasvendidosActionPerformed(evt);
    }//GEN-LAST:event_jmni_articmasvendidosActionPerformed

    private void jmni_sugerenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_sugerenciaActionPerformed
        // TODO add your handling code here:
    
        this.llamarcomen();
    }//GEN-LAST:event_jmni_sugerenciaActionPerformed
private void llamarcomen()
    {
        this.crearcomentario();
        this.carga_catalogocomentarios();
        this.cambiartamanofilas();
    }


    private void jmni_costoxtemporadaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_costoxtemporadaActionPerformed
        // TODO add your handling code here:
         if (variables_global.getnivelusu()< 3)
           {
            if (repcotosxtempo == null)
                {
                    repcotosxtempo = new articulos_sie_rep_costosxtempo();
                    repcotosxtempo.pack();
                    repcotosxtempo.setVisible(true);
                }
                else
                {
                    repcotosxtempo.dispose();
                    repcotosxtempo = new articulos_sie_rep_costosxtempo();
                    repcotosxtempo.pack();
                    repcotosxtempo.setVisible(true);

                }
          }
        else
            {
               JOptionPane.showMessageDialog(null,"Opcion no disponible en su Perfil:", "Sistema Integral(Grafica cortes del dia) : Ayuda",1);
            }
}//GEN-LAST:event_jmni_costoxtemporadaActionPerformed

    private void jmni_almacendistribucionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_almacendistribucionActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        com_distri_articulos_almacen fad=new com_distri_articulos_almacen();
        fad.pack();
        fad.setVisible(true);
        }
}//GEN-LAST:event_jmni_almacendistribucionActionPerformed

    private void jbtn_costosinventariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_costosinventariosActionPerformed
        // TODO add your handling code here:
        this.jmni_costoxtemporadaActionPerformed(evt);
    }//GEN-LAST:event_jbtn_costosinventariosActionPerformed
private void jt_comentariosMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jmni_insumos_salidasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_insumos_salidasActionPerformed
        // TODO add your handling code here:
   
    }//GEN-LAST:event_jmni_insumos_salidasActionPerformed

    private void jbtn_cattareasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_cattareasActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        supervision_tareas_programacion stp=new supervision_tareas_programacion();
        stp.pack();
        stp.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_cattareasActionPerformed

    private void jbtn_insumosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_insumosActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        insumos_salidas_catalogo cir=new insumos_salidas_catalogo();
        cir.pack();
        cir.setVisible(true);        // TODO add your handling code here:
        }
}//GEN-LAST:event_jbtn_insumosActionPerformed

    private void jbtn_recursoshActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_recursoshActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        supervision_rh_catalogo frhc=new supervision_rh_catalogo();
        frhc.pack();
        frhc.setVisible(true);
        }
  if(variables_global.getnivelusu()==7)
        {
                supervision_rh_asistencia_xdia fsrad=new supervision_rh_asistencia_xdia();
                fsrad.pack();
                fsrad.setVisible(true);
        }

}//GEN-LAST:event_jbtn_recursoshActionPerformed

    private void jbtn_ventasvstipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_ventasvstipoActionPerformed
        // TODO add your handling code here:
if ((variables_global.getnivelusu() == 3)||(variables_global.getnivelusu() == 4))
    {
            JPasswordField pwd = new JPasswordField(10);
            int action = JOptionPane.showConfirmDialog(null, pwd,"Contraseña:(Use Tab p/moverse o Mause)",JOptionPane.OK_CANCEL_OPTION);
            if(action < 0)
                {
                    JOptionPane.showMessageDialog(null,"No se realiza Proceso, Gracias");
                }
            else
                {
                //comparo si la contraseña es apropiada
                 if(variables_global.getPassword().equals(String.valueOf(pwd.getPassword())))
                        {
                            this.ventasvsventas(1);
                        }
                    else
                        {
                            JOptionPane.showMessageDialog(null,"por Favor teclee su contraseña coreectamente, verifique mayusculas en teclado");
                        }
                }


     }
if (variables_global.getnivelusu()<3)
    {
        this.ventasvsventas(2);
    }


    }//GEN-LAST:event_jbtn_ventasvstipoActionPerformed

    private void jbtn_comprasvsventasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_comprasvsventasActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
            com_distri_provee_comp_vs_ven fcdpcvsv=new com_distri_provee_comp_vs_ven();
            fcdpcvsv.pack();
            fcdpcvsv.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_comprasvsventasActionPerformed

    private void jbtn_cxcActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_cxcActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        supervision_cxc_catalogo fcxcc=new supervision_cxc_catalogo();
        fcxcc.pack();
        fcxcc.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_cxcActionPerformed

    private void jbtn_viajesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_viajesActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        com_distri_clasif_viajes fcdcv=new com_distri_clasif_viajes();
        fcdcv.pack();
        fcdcv.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_viajesActionPerformed

    private void jbtn_almacenarticulosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_almacenarticulosActionPerformed
        // TODO add your handling code here:

        this.jmni_almacendistribucionActionPerformed(evt);
    }//GEN-LAST:event_jbtn_almacenarticulosActionPerformed

    private void jbtn_apartadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_apartadosActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
            ventas_sie_apartados_catalogo fvsac=new ventas_sie_apartados_catalogo();
            fvsac.pack();
            fvsac.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_apartadosActionPerformed

    private void jmni_eventualidadesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_eventualidadesActionPerformed
        // TODO add your handling code here:
        JFrame mainFrame = Sie_invdisApp.getApplication().getMainFrame();
        supervision_reporte_eventualidades fsre=new supervision_reporte_eventualidades(mainFrame,true);
        fsre.pack();
        fsre.setVisible(true);
    }//GEN-LAST:event_jmni_eventualidadesActionPerformed

    private void jbtn_checadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_checadorActionPerformed
        // TODO add your handling code here:
  
        supervision_rh_asistencia_checador fsrhc=new supervision_rh_asistencia_checador();
        fsrhc.pack();
        fsrhc.setVisible(true);
     
    }//GEN-LAST:event_jbtn_checadorActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        this.jmni_sugerenciaActionPerformed(evt);
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jmni_actualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_actualizarActionPerformed
        // TODO add your handling code here:
        this.carga_catalogocomentarios();
        this.cambiartamanofilas();
        this.carga_catalogoresponsables();
    }//GEN-LAST:event_jmni_actualizarActionPerformed

    private void jbtn_encuestascalidadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_encuestascalidadActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        supervision_encuestas_calidadenprocesos fsecp=new supervision_encuestas_calidadenprocesos();
        fsecp.pack();
        fsecp.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_encuestascalidadActionPerformed

    private void jmni_escapeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_escapeActionPerformed
        // TODO add your handling code here:
        this.jbtn_quitActionPerformed(evt);
    }//GEN-LAST:event_jmni_escapeActionPerformed

    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed
        // TODO add your handling code here:
                 if(autorizado==1)
            {
                this.jbtn_checadorActionPerformed(evt);
            }
        else
            {

            }
    }//GEN-LAST:event_jMenuItem7ActionPerformed

    private void jbtn_actualizacomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_actualizacomeActionPerformed
        // TODO add your handling code here:
        this.jmni_actualizarActionPerformed(evt);
}//GEN-LAST:event_jbtn_actualizacomeActionPerformed

    private void jbtn_distribucioncomprasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_distribucioncomprasActionPerformed
        // TODO add your handling code here:
  if((variables_global.getnivelusu()<4) || (variables_global.getnivelusu()==8))
        {
        com_distri_compras fsrad=new com_distri_compras();
        fsrad.pack();
        fsrad.setVisible(true);
        }
}//GEN-LAST:event_jbtn_distribucioncomprasActionPerformed

    private void jbtn_proveedoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_proveedoresActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        com_distri_compras_proveedores fcdcp=new com_distri_compras_proveedores();
        fcdcp.pack();
        fcdcp.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_proveedoresActionPerformed

    private void jbtn_ventasxmesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_ventasxmesActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        if(JOptionPane.showConfirmDialog(null, "Desea Ver Reporte?")==0)
            {
            ventas_sie_venxmes_resumen fvsvr=new ventas_sie_venxmes_resumen();
            fvsvr.pack();
            fvsvr.setVisible(true);
            }
        }
    }//GEN-LAST:event_jbtn_ventasxmesActionPerformed

    private void jbtn_diarioventaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_diarioventaActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        ventas_sie_diarioventas fvsdv=new ventas_sie_diarioventas(0,"","","","");
        fvsdv.pack();
        fvsdv.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_diarioventaActionPerformed

    private void jbtn_laserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_laserActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        laser_entradas_catalogo flec=new laser_entradas_catalogo();
        flec.pack();
        flec.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_laserActionPerformed

    private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed
        // TODO add your handling code here:
        this.jbtn_laserActionPerformed(evt);
    }//GEN-LAST:event_jMenuItem8ActionPerformed

    private void jmni_reconexionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_reconexionActionPerformed
        // TODO add your handling code here:
        this.conexionicono();
}//GEN-LAST:event_jmni_reconexionActionPerformed

    private void jtbtn_conexionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtbtn_conexionActionPerformed
        // TODO add your handling code here:
         this.conexionicono();
    }//GEN-LAST:event_jtbtn_conexionActionPerformed

    private void jbtn_facturasimprimeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_facturasimprimeActionPerformed
        // TODO add your handling code here:
  if(variables_global.getnivelusu()<4)
        {
        ventas_sie_impresionfacturas fvsif=new ventas_sie_impresionfacturas();
        fvsif.pack();
        fvsif.setVisible(true);
        }
    }//GEN-LAST:event_jbtn_facturasimprimeActionPerformed

    private void jbtn_cajaflujoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_cajaflujoActionPerformed
        // TODO add your handling code here:
          if(variables_global.getnivelusu()<4)
            {
                    ventas_sie_diarioventas_cajaoperaciones fvsdcf=new ventas_sie_diarioventas_cajaoperaciones();
                    fvsdcf.pack();
                    fvsdcf.setVisible(true);
          }
}//GEN-LAST:event_jbtn_cajaflujoActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
   String Ipreal=null,busqueda="<p class=\"first\"><span style=\"font-size: 32px\">",publicIP="";
    int index=0;

        try{
            //InetAddress.getLocalHost().getHostAddress();
            URL tempURL =new URL("http://www.cual-es-mi-ip.net/");
            HttpURLConnection tempConn = (HttpURLConnection)tempURL.openConnection();
            InputStream tempInStream = tempConn.getInputStream();
            InputStreamReader tempIsr = new InputStreamReader(tempInStream);
            BufferedReader tempBr = new BufferedReader(tempIsr);
            while ((publicIP=tempBr.readLine())!=null)
                {
                publicIP = tempBr.readLine();//InetAddress.getLocalHost().getHostAddress();
                System.out.println("Mi IP publica es" +publicIP);
                index=publicIP.indexOf(busqueda);
                if(index>0)
                    {
                        Ipreal=publicIP.replace("<p class=\"first\"><span style=\"font-size: 32px\">", "").replace("</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size:12px;\"><a href=\"http://www.testdevelocidadmovil.es\" target=\"_blank\" style=\"color:#FF0000;\">prueba el nuevo test de velocidad</a></span></p>", "");
                    }
               }
        }
        catch (Exception ex)
            {
                //System.out.println("error de ip publica:" +);
        }

JOptionPane.showMessageDialog(null,"<html><h2><b>"+Ipreal+"</b></h2></html>", "Sistema Integral(Grafica cortes del dia) : Ayuda",1);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
        if(variables_global.getnivelusu()<4)
        {
        ventas_sie_promociones fvsp=new ventas_sie_promociones();
        fvsp.pack();
        fvsp.setVisible(true);
        }
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem9ActionPerformed
        // TODO add your handling code here:
        if((variables_global.getnivelusu()<3) &&(variables_global.getLogin().equals("administrador")))
            {
                Sie_invdis_usuariosadmin csiu=new Sie_invdis_usuariosadmin();
                csiu.pack();
                csiu.setVisible(true);        // TODO add your handling code here:
            }
    }//GEN-LAST:event_jMenuItem9ActionPerformed

    private void jmni_ventapromocionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_ventapromocionesActionPerformed
        // TODO add your handling code here:
             ventas_sie_promociones fvsp=new ventas_sie_promociones();
            fvsp.pack();
            fvsp.setVisible(true);
    }//GEN-LAST:event_jmni_ventapromocionesActionPerformed

    private void jMenuItem10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem10ActionPerformed
        // TODO add your handling code here:
        this.jbtn_diarioventaActionPerformed(evt);
        
    }//GEN-LAST:event_jMenuItem10ActionPerformed
 private void ventasvsventas(int opcion)
 {
        DefaultCategoryDataset datasetbarra = new DefaultCategoryDataset();
        String titulografico="",totaltiendatexto="";
        String esquema="",texto="";
        ResultSet rs2=null;
        float importe=0;
        String mespartido[]=null;
        texto="select * from x1venta_deldia_completo(1,"+variables_global.getidtiendami()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','') as (fecha date,importe double precision,fechatexto text);";
        System.out.println(texto);
        try
         {
            rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                        if(rs.getString("importe")!=null)
                            {
                                mespartido=rs.getString("fechatexto").split(":");
                                titulografico=mespartido[0];
                                datasetbarra.addValue(rs.getFloat("importe"),"Venta",titulografico);
                            }
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
        texto="select * from x1venta_metas_vs_venta(1,"+variables_global.getidtiendami()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','') as (fecha date,monto numeric,fechaenmes text,fechaanual text);";
        System.out.println(texto);
        try
         {
            rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                        if(rs.getString("monto")!=null)
                            {
                                 mespartido=rs.getString("fechaenmes").split(":");
                                titulografico=mespartido[0];
                                datasetbarra.addValue(rs.getFloat("monto"),"Meta",titulografico);
                            }
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
        
      System.out.println("se crea nuevo:");
        graficacion_varios_barras gvbvenxmes = new graficacion_varios_barras("Sistema Integral: Ventas VS Metas Hoy:"+this.fechaeuropea(fechahoy)+" "+this.DiaSemana(this.fechaeuropea(fechahoy))+" Hora: "+fechahoy.getHours()+":"+fechahoy.getMinutes(),datasetbarra,"Tiendas "+this.fechaeuropea(fechahoy)+" "+this.DiaSemana(this.fechaeuropea(fechahoy))+" Hora: "+fechahoy.getHours()+":"+fechahoy.getMinutes(),"Ventas VS Tipos de Tienda");
        gvbvenxmes.pack();
        RefineryUtilities.centerFrameOnScreen(gvbvenxmes);
        gvbvenxmes.setVisible(true);

 }


 private void crearcomentario()
          {
        String retorno="";
        String comentario=JOptionPane.showInputDialog("Ingresa Tu Sugerencia o Comentario:");
        if (comentario.length()>0)
        {
            rs = x.sieuno_executediversosv2("select * from x1distribucion_bitacorainserta('"+comentario+"', 'MOdulo General');",variables_global.getconexiongral());
            try
            {
               while (rs.next())
                    {
                         retorno=rs.getString(1);
                   }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
            if (retorno.equals("1"))
              {
                JOptionPane.showMessageDialog(null,"Gracias Tu comentario ha sido guardado", "Sistema Integral Comentarios",1);
                
              }

      }
    }
    private  void ayuda()
            {
                JOptionPane.showMessageDialog(null," 1.-Sistema Integral cada Opcion se autodescribe brevemente su funcio\n 2.- Cada Boton o menu tiene Una letra Resaltada el cual indica mu metodo abreviado uselo si desea mayor rapides ( ejemplo Alt+a tendra ayuda automaticamente)\n ", "Sistema Integral: Ayuda",1);
            }
private void dioclick1() {
        // TODO add your handling code here:
       
         int fila = jt_comentarios.getSelectedRow();
         this.jep_visordeartisolicitados.setText(jt_comentarios.getValueAt(fila,1).toString());

    }



    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JButton jbtn_actualizacome;
    private javax.swing.JButton jbtn_almacenarticulos;
    private javax.swing.JButton jbtn_apartados;
    private javax.swing.JButton jbtn_artmasvendidos;
    private javax.swing.JButton jbtn_ayudahelp;
    private javax.swing.JButton jbtn_cajaflujo;
    private javax.swing.JButton jbtn_cat_artic;
    private javax.swing.JButton jbtn_cattareas;
    private javax.swing.JButton jbtn_checador;
    private javax.swing.JButton jbtn_comprasvsventas;
    private javax.swing.JButton jbtn_cortesdiagraf;
    private javax.swing.JButton jbtn_costosinventarios;
    private javax.swing.JButton jbtn_cxc;
    private javax.swing.JButton jbtn_diarioventa;
    private javax.swing.JButton jbtn_distribucioncompras;
    private javax.swing.JButton jbtn_encuestascalidad;
    private javax.swing.JButton jbtn_facturasimprime;
    private javax.swing.JButton jbtn_insumos;
    private javax.swing.JButton jbtn_laser;
    private javax.swing.JButton jbtn_monedero;
    private javax.swing.JButton jbtn_proveedores;
    private javax.swing.JButton jbtn_quit;
    private javax.swing.JButton jbtn_recepciones;
    private javax.swing.JButton jbtn_recursosh;
    private javax.swing.JButton jbtn_repvpprovee;
    private javax.swing.JButton jbtn_ventasagente;
    private javax.swing.JButton jbtn_ventasvstipo;
    private javax.swing.JButton jbtn_ventasxmes;
    private javax.swing.JButton jbtn_viajes;
    private javax.swing.JEditorPane jep_logo;
    private javax.swing.JEditorPane jep_visordeartisolicitados;
    private javax.swing.JMenu jmn_distribucion;
    private javax.swing.JMenuItem jmni_actualizar;
    private javax.swing.JMenuItem jmni_almacendistribucion;
    private javax.swing.JMenuItem jmni_articmasvendidos;
    private javax.swing.JMenuItem jmni_catalogomonedero;
    private javax.swing.JMenuItem jmni_costoxtemporada;
    private javax.swing.JMenuItem jmni_escape;
    private javax.swing.JMenuItem jmni_eventualidades;
    private javax.swing.JMenuItem jmni_insumos_salidas;
    private javax.swing.JMenu jmni_maquinalaser;
    private javax.swing.JMenuItem jmni_reconexion;
    private javax.swing.JMenuItem jmni_repcostosxsub;
    private javax.swing.JMenuItem jmni_repventaxfam;
    private javax.swing.JMenu jmni_repvxp;
    private javax.swing.JMenuItem jmni_sugerencia;
    private javax.swing.JMenuItem jmni_ventapromociones;
    private javax.swing.JMenuItem jmni_ventasxprovee;
    private javax.swing.JTable jt_comentarios;
    private javax.swing.JTable jt_tiendaresponsable;
    private javax.swing.JToggleButton jtbtn_conexion;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    // End of variables declaration//GEN-END:variables

    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;

    private JDialog aboutBox;
    private JFrame distrifolios;
    private JDialog autenticar;
    
     private JFrame avisosrecepciones;
   // private JDialog fvscd;
     private JFrame fvscd;
    private JFrame monedero;
    private JFrame agentes;
    private JFrame repartmasven;
    private JFrame repartmasfam;
    private JFrame repartcostossubfam;
    private JFrame reparmasven;
      private JFrame repcotosxtempo;


}
